﻿@model PageList<Article>
<table class="table table-striped table-bordered table-hover table-fix table-manage">
    <thead>
        <tr>
            <th class="w20px">
                <label><input class="checkbox-check" type="checkbox"><span></span></label>
            </th>
            <th class="w60px text-center" data-order="@nameof(Article.CategoryId)">分类</th>
            <th class="w300px" data-order="@nameof(Article.Subject)">标题</th>
            <th class="w40px text-center" data-order="@nameof(Article.Status)">状态</th>
            <th class="w100px" data-order="@nameof(Article.CreateTime)">创建时间</th>
            <th class="w100px" data-order="@nameof(Article.ModifyTime)">修改时间</th>
            <th class="w30px text-center">属性</th>
            <th class="text-center w50px">操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var record in Model)
        {
            <tr class="cursor-pointer" data-url="@Url.Action("Details",new {id = record.Id})">
                <td>
                    <label><input class="checkbox-check" type="checkbox" value="@record.Id"><span></span></label>
                </td>
                <td class="text-center">@record.CategoryName</td>
                <td class="">
                    <a class="uimodal" data-size="lg" data-url="@Url.Action("Details", new {id = record.Id})">
                        @record.Subject
                    </a>
                </td>
                
                <td class="text-center">@Html.BoolLabel(record.Status, record.StatusText, record.StatusText)</td>
                <td class="">@DateTimeHelper.FormatDateHasSecond(record.CreateTime)</td>
                <td class="">@DateTimeHelper.FormatDateHasSecond(record.ModifyTime)</td>
                <td class="text-center"><span class="label label-primary">@record.IsSlideText</span></td>
                <td class="text-center">
                    <a class="color-primary uimodal" data-toggle="tooltip"
                       data-size="lg"
                       data-url="@Url.Action("Edit", new { id = record.Id })"
                       title="编辑">
                        <i class="fa fa-lg fa-edit"></i>
                    </a>
                    <span>&nbsp;</span>
                    <a class="color-danger tsdelete" data-toggle="tooltip"
                       data-url="@Url.Action("Delete", new {id = record.Id})"
                       title="删除">
                        <i class="fa fa-lg fa-trash-o"></i>
                    </a>
                </td>
            </tr>
        }
    </tbody>
</table>
@Html.RenderPages(Model)
